﻿using System;
using System.Runtime.InteropServices;

namespace Car.NavMesh
{
    public class CarSoloNavMeshInterface
    {
        [DllImport(CarNavSetting.LIBRARY_NAME)]
        public static extern void SetBuildConfig(CarBuildConfig carBuildConfig);

        [DllImport(CarNavSetting.LIBRARY_NAME)]
        public static extern void SetMeshData(float[] vertexBuffer, int vertexCount, int[] triangleBuffer, int triangleCount);

        [DllImport(CarNavSetting.LIBRARY_NAME)]
        public static extern void BuildSoloNavMesh();

        [DllImport(CarNavSetting.LIBRARY_NAME)]
        public static extern void Cleanup();
    }
}